package cn.wolfcode.shop.mapper;

import cn.wolfcode.shop.domain.Property;
import org.omg.CORBA.Object;

import java.util.List;
import java.util.Map;

public interface PropertyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Property record);

    Property selectByPrimaryKey(Long id);

    List<Property> selectAll();

    int updateByPrimaryKey(Property record);

    List<Property> selectByCatalogId(Long catalogId);

    /**
     * 查询属性个数
     * @param catalogId
     * @return
     */
    Integer catalogPropertyCountByCatalogId(Long catalogId);

    /**
     * 后去商品属性表中的  不同商品的属性个数
     */
    List<Map<String,Long>>  catalogPropertyCountAll();

}